import { mapActions } from 'vuex'
const ACTION_PREFIX = module.id; // 设置action前缀确保type的唯一性

// 获取消息模块总数量
export const GET_MESSAGE_COUNT = `${ACTION_PREFIX}/GET_MESSAGE_COUNT`;

// 获取系统消息详情
export const GET_MESSAGE_INFO = `${ACTION_PREFIX}/GET_MESSAGE_INFO`;

// 获取互动消息详情
export const GET_MESSAGE_TREANDS = `${ACTION_PREFIX}/GET_MESSAGE_TREANDS`;

// 删除消息
export const DELETE_MESSAGE = `${ACTION_PREFIX}/DELETE_MESSAGE`;

export default mapActions({
	getMessageCount: GET_MESSAGE_COUNT,
	getMessageInfo: GET_MESSAGE_INFO,
	getMessageTreands: GET_MESSAGE_TREANDS,
	deleteMessage: DELETE_MESSAGE,
})